﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainWap.Master" Inherits="System.Web.Mvc.ViewPage<List<LangMauViet.Models.Entity.News>>" %>

<%@ Import Namespace="LangMauViet.Classes.Helper" %>
<%@ Import Namespace="LangMauViet.Models.Entity" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    langmauviet.vn - <%=Model!=null&&Model.Count> 0? Model[0].Title : "Chi tiết" %>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% var news = ((List<News>)ViewData["listNews"])[0];
       var otherNews = ((List<News>)ViewData["listOtherNews"]);
       var hotNews = (List<HotItem>)ViewData["listHot"]; %>
    <div id="searchbox">
        <div class="keyword">
            <span class="hot">Chủ đề HOT</span>:
            <% if (!ReferenceEquals(hotNews, null))
               {
                   for (int i = 0; i < hotNews.Count; i++)
                   {
                       if (i < hotNews.Count - 1)
                       { %>
            <a href="/Tin-tuc/Chi-tiet/<%= hotNews[i].NewsId %>/<%= UIHelper.convertToUnSign(hotNews[i].Title) %>">
                <%= hotNews[i].Title %></a> <span style="font-size: 12px;">|</span>
            <% }
                       else
                       {%>
            <a href="/Tin-tuc/Chi-tiet/<%= hotNews[i].NewsId %>/<%= UIHelper.convertToUnSign(hotNews[i].Title) %>">
                <%= hotNews[i].Title %></a>
            <%}
                   }
               }%>
        </div>
    </div>
    <div class="clearfix">
    </div>
    <div id="content">
         <h2>
            <span>
                <%=news.Title%></span></h2>
        <div class="wap_content_image_detail clip-detail">
            <center>
            <img src='http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%=news.Icon%>' alt=""
                width="80%" />
        </center>
            <%--<div class="wap_news_title">
                <b><%=news.Title %></b>
            </div>--%>
            <div class="wap_news_content">
                <%=news.Content %>
            </div>
        </div>
        <div class="clear"></div>
        <h2>
            <span>&nbsp;Tin HOT</span></h2>

        <div class="v-list">
            <% if (!ReferenceEquals(otherNews, null))
               {
                   foreach (News v in otherNews)
                   { %>
            <div class="v-item ">
                <table>
                    <tbody>
                        <tr valign="top">
                            <td class="left">
                                <a href="/Tin-tuc/Chi-tiet/<%= v.NewsId %>/<%= UIHelper.convertToUnSign(v.Title) %>">
                                    <img alt="<%= v.Title %>" src="http://vipmobi.net:7001/mobile/download?v=1&w=250&id=<%= v.Icon %>">
                                </a>
                            </td>
                            <td class="right">
                                <div class="title">
                                    <a href="/Tin-tuc/Chi-tiet/<%= v.NewsId %>/<%= UIHelper.convertToUnSign(v.Title) %>">
                                        <%= v.Title %>
                                    </a>
                                </div>
                                <%--<div class="subtitle">
                                    <span>4 Lượt xem </span>
                                    <div class="clearfix">
                                    </div>
                                    <span>
                                        <!--								<img src="/themes/avideo_v2/images/icon_streaming.gif"/> -->
                                        <a href="/Tin-tuc/Chi-tiet/<%= v.NewsId %>/<%= UIHelper.convertToUnSign(v.Title) %>">(Xem/3000d) </a></span>
                                </div>--%>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
            <% }
               } %>
        </div>
        <div class="clearfix">
        </div>
        <%--<ul class="home-nav">
            <li>1</li>
            <li><a href="#">2</a></li>
            <li><a href="#">3</a></li>
            <li><a href="#">4</a></li>
            <li><a href="#">5</a></li>
            <li><a href="#">Tiếp</a></li>
        </ul>--%>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="metaheader" runat="server">
</asp:Content>
